%-- 10/3/11 10:30 AM --%
im=load('cameraman.tiff');
im=imread('cameraman.tiff');
im=imread('cameraman.tif');
imagesc(im)
colormap(gray)
fspecial('gaussian',3,3)
help conv2
im(1)
ones(3)
ones(3)/9
kernel=ones(3)/9
im;
convim=conv2(im,kernel);
convim=conv2(double(im),kernel);
figure;
imagesc(convim)
colormap(gray)
kernel=ones(21)/441;
convim=conv2(double(im),kernel);
imagesc(convim)
gk=fspecial('gaussian',5,3);
gk
gk=fspecial('gaussian',5,1);
gk
sum(gk(:))
plot3d(gk)
surf(gk)
gk=fspecial('gaussian',15,3);
surf(gk)
gkc=conv2(im,gk);
gkc=conv2(double(im),gk);
figure
imagesc(gkc)
colormap(gray)
ones(15,1)
ones(15,1)'
horker=ones(15,1)';
motionblur=conv2(double(im),horker);
imagesc(motionblur)
